TException
CSharpTest.Net
Assert<TException>(Boolean) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > (Global) Namespace > Check Class > Assert Method : Assert<TException>(Boolean) Method

condition

Glossary Item Box

Verifies that the condition is true and if it fails constructs the specified type of exception and throws.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Assert(Of TException As {New, Exception})( _
   ByVal condition As Boolean _
) 
C# 
public static void Assert<TException>( 
   bool condition
)
where TException: new(), Exception

Parameters

condition

Type Parameters

TException

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys